diff options
Diffstat (limited to 'src/pages/thematique/[slug].tsx')
| -rw-r--r-- | src/pages/thematique/[slug].tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx index a8cb478..edc4296 100644 --- a/src/pages/thematique/[slug].tsx +++ b/src/pages/thematique/[slug].tsx @@ -19,6 +19,7 @@ import { loadTranslation } from '@utils/helpers/i18n'; import { GetStaticPaths, GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; import { useRouter } from 'next/router'; +import Script from 'next/script'; import { ParsedUrlQuery } from 'querystring'; import { useRef } from 'react'; import { useIntl } from 'react-intl'; @@ -111,11 +112,12 @@ const Thematic: NextPageWithLayout<ThematicProps> = ({ <meta property="og:type" content="article" /> <meta property="og:title" content={thematic.title} /> <meta property="og:description" content={thematic.intro} /> - <script - type="application/ld+json" - dangerouslySetInnerHTML={{ __html: JSON.stringify(schemaJsonLd) }} - ></script> </Head> + <Script + id="schema-thematic" + type="application/ld+json" + dangerouslySetInnerHTML={{ __html: JSON.stringify(schemaJsonLd) }} + /> <article id="thematic" className={`${styles.article} ${styles['article--no-comments']}`} |
